﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HRM.Model;

namespace HRM.Design
{
    public class DesignProjectService : IProjectService
    {
        public List<DuAn> GetByAll()
        {
            var list = new List<DuAn>();
            for (int i = 1; i < 6; i++)
            {
                list.Add(new DuAn()
                {
                    MaDuAn = i.ToString(),
                    TenDuAn = "Du An " + i.ToString()
                });
            }

            return list;
        }


        public List<DuAn> SearchByProjectID(string id)
        {
            return new List<DuAn>();
        }

        public List<DuAn> SearchByProjectName(string projectName)
        {
            return new List<DuAn>();
        }


        public bool Update(string id, string name)
        {
            return true;
        }

        public bool Add(string id, string name)
        {
            return true;
        }


        public bool Delete(DuAn da)
        {
            return true;
        }


        public List<DuAn> GetPaging(int pageIndex, int pageSize)
        {
            var list = new List<DuAn>();
            for (int i = 1; i < 10; i++)
            {
                list.Add(new DuAn()
                {
                    MaDuAn = i.ToString(),
                    TenDuAn = "Du An " + i.ToString()
                });
            }

            return list;
        }

        public int GetNumberOfPages(int pageSize)
        {
            return 10;
        }

        public bool DeleteList(List<DuAn> list)
        {
            throw new NotImplementedException();
        }
    }
}
